abstract class $BAG{E} < $RO_BAG{E}
****
A standard bag, which contains objects in no specified order, and can contain two equal objects


Ancestors
$RO_BAG{_} $STR $CONTAINER{_} $ELT{_}
$ELT

Descendants
BAG{_} H_BAG{_}



Public


Features
delete(e:E);
**** Remove one occurence of the element from the bag. Does nothing, if there is no such element in to bag.
delete_all(e:E);
**** Remove all occurences of the element 'e'.
delete_all(e:E): INT;
**** Returns the number of deleted items.
insert(e:E);
**** Puts the element into the bag.

The Sather Home Page